package com.tanhua.dubbo.server.vo;

import cn.hutool.core.convert.Convert;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;

import java.util.Comparator;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SortRule {
    private ObjectId id;//id(动态,视频)
    private Long count;//次数

/*    @Override
    public int compare(SortRule o1, SortRule o2) {
        return Convert.toInt(o1.getCount()-o2.getCount())==0?1:Convert.toInt(o1.getCount()-o2.getCount());
    }*/
}
